package JiCheng;

public class Person {
    public String name;
    public Integer age;
    public String sex;
    public String tel;

    public Person() {
    }

    public Person(String name, Integer age, String sex, String tel) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.tel = tel;
    }
    public void play(String doing){
        System.out.println("学习之余，喜欢做的事情："+doing);
    }
    public void eat(String food){
        System.out.println("喜欢吃的东西："+food);
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", tel='" + tel + '\'' +
                '}';
    }
}
